package com.tjzx.entity;

/**
 * PeiPatientActionassessTypeId entity. @author MyEclipse Persistence Tools
 */

public class PeiPatientActionassessTypeId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String actionassessType;
	private String actionassessMemo;

	// Constructors

	/** default constructor */
	public PeiPatientActionassessTypeId() {
	}

	/** minimal constructor */
	public PeiPatientActionassessTypeId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeiPatientActionassessTypeId(Integer id, String actionassessType,
			String actionassessMemo) {
		this.id = id;
		this.actionassessType = actionassessType;
		this.actionassessMemo = actionassessMemo;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getActionassessType() {
		return this.actionassessType;
	}

	public void setActionassessType(String actionassessType) {
		this.actionassessType = actionassessType;
	}

	public String getActionassessMemo() {
		return this.actionassessMemo;
	}

	public void setActionassessMemo(String actionassessMemo) {
		this.actionassessMemo = actionassessMemo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeiPatientActionassessTypeId))
			return false;
		PeiPatientActionassessTypeId castOther = (PeiPatientActionassessTypeId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getActionassessType() == castOther
						.getActionassessType()) || (this.getActionassessType() != null
						&& castOther.getActionassessType() != null && this
						.getActionassessType().equals(
								castOther.getActionassessType())))
				&& ((this.getActionassessMemo() == castOther
						.getActionassessMemo()) || (this.getActionassessMemo() != null
						&& castOther.getActionassessMemo() != null && this
						.getActionassessMemo().equals(
								castOther.getActionassessMemo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getActionassessType() == null ? 0 : this
						.getActionassessType().hashCode());
		result = 37
				* result
				+ (getActionassessMemo() == null ? 0 : this
						.getActionassessMemo().hashCode());
		return result;
	}

}